import Request from '@/axios/request'

export function getConfigCategories(params) {
  return Request.get('config-categories', { params })
}

export function createConfigCategory() {
  return Request.get('config-categories/create')
}

export function storeConfigCategory(data) {
  return Request.post('config-categories', data)
}

export function updateConfigCategory(id, data) {
  return Request.put(`config-categories/${id}`, data)
}

export function editConfigCategory(id) {
  return Request.get(`config-categories/${id}/edit`)
}

export function destroyConfigCategory(id) {
  return Request.delete(`config-categories/${id}`)
}

export function showConfigCategory(id) {
  return Request.get(`config-categories/${id}`)
}
